const app = getApp();
const wxApi = app.globalData.wxApi;
let hydrids = require('../../../config/hydridsConf');
let webviewPage = '../../common/webview/webview';
Page({
  data: {
    version: app.globalData.version
  },
  onLoad() {
    this.init();
  },
  init() {
    wxApi.setNavTitle('关于我们');
  },
  gotoFAQ() {
    let params = {
      src: hydrids.help,
      navTitle: '常见问题' 
    }
    wxApi.navigateTo( webviewPage, params );
  },
  gotoAgreement() {
    let params = {
      src: hydrids.agreement,
      navTitle: '用户协议' 
    }
    wxApi.navigateTo( webviewPage, params );
  }
})